<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" href="lib/layui/css/layui.css">
<script type="text/javascript" src="lib/layui/layui.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开药</title>
</head>
<script type="text/javascript">
	
</script>
<style type="text/css">
#bid {
	width: 80% px;
	height: 100px;
}
</style>
<body>
<div><h3>供应商展示页面</h3></div>
	<div>
		<form action="selectMoHuSupp.do" method="post">
			<input type="text" name="pname" class="form-control" placeholder="输入供应商名称"> 
			<input class="btn btn-info"	type="submit" value="查询">
		</form>
		<form action="selectSuppAndTypeAndDrug.do" method="post">
			<input type="text" class="form-control"   name="pname" placeholder="输入供应商名称"> <input
			class="btn btn-info"	type="submit" value="查询该供应商提供的药品">
		</form><br>
		<a href="jump.do?target=SuppInsert"><input type="button" class="btn btn-info" value="添加供应商"></a>
		<a href="jump.do?target=SuppUpdate"><input type="button"  class="btn btn-info"value="修改供应商信息"></a>
		<a href="selectSupp1.do"><input type="button"  class="btn btn-info" value="修改供应商状态"></a>
	</div>
	<div>
		<form>
			<table class="table table-striped">
				<tr>
					<td>供应商编号</td>
					<td>供应商名称</td>
					<td>供应商地址</td>
					<td>供应商电话</td>
					<td>供应商状态</td>
				</tr>

				<c:forEach items="${supplist}" var="s" varStatus="status">
					<tr>
						<td>${s.getPid()}</td>
						<td>${s.getPname()}</td>
						<td>${s.getPaddre()}</td>
						<td>${s.getPphone()}</td>
						<c:if test="${s.getPstate()==1}">
							<td>正在进行提供货物</td>
						</c:if>
						<c:if test="${s.getPstate()==2}">
							<td>已经停止供货</td>
						</c:if>
					</tr>
				</c:forEach>
			</table>
		</form>
	</div>

</body>
</html>